package sdu.icat.pj.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import sdu.icat.sys.smodel.SysUserMenu;

@Repository
public interface SysUserMenuRepository extends JpaRepository<SysUserMenu, Long>{

    List<SysUserMenu> findByUserId(Long userid);
    
    SysUserMenu findByUserIdAndPermission(Long userId,String permission);
}
